package cn.jasonone.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.jasonone.bean.SysRole;
import cn.jasonone.bean.SysUser;

public interface SysRoleMapper {
	public int save(SysRole role);

	public int deleteByIds(@Param("ids") int... ids);

	public List<SysRole> findAll(SysRole role);
	
	public SysRole findById(@Param("id")int id);
	
	public List<SysRole> findByUserId(@Param("userId")int userId);
	
	public int deleteRoleBind(@Param("userId")Integer userId);
	
	public int addRoleBind(@Param("userId")Integer userId,@Param("roleIds")int[] roleIds);
}
